#include<stdio.h>
#include<unistd.h>
#include <string.h>
int main()
{
  int i = 0;
  char buff[102];
  memset(buff,0,sizeof(buff));
  while(i <= 100 )
  {
    printf("[%-100s][%d%%]\r",buff,i);
    fflush(stdout);
    buff[i++] = '#';
    usleep(100000);
  }
  printf("\n");
  return 0;
}